package cn.com.bod.fas.common.annotation.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @description 手机号校验注解
 * @author chenyuanxian
 * @date 2019年10月11日 00:03:46
 * @version 1.0.0
 * @Copyright (c) scfhdt
 */
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = MobileNumValidator.class)
public @interface MobileNum {
    
    String message() default "手机号格式不合法";
    
    Class<?>[] groups() default {};
    
    Class<? extends Payload>[] payload() default {};

}
